from appium import webdriver

# Appium Server 配置
desired_caps = {
    'platformName': 'Android',
    'platformVersion': '13.0',
    'appPackage': 'com.google.android.calendar',
    'appActivity': 'com.android.calendar.homepage.MainActivity',
    'noReset': True
}

driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)